﻿@model IEnumerable<DBTramite.BussinesEntities.T_Documento>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2 class="tabla-bordes-2" style="background: lightblue">Expedientes Registrados</h2>

@*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Buscar Expediente</legend>
        <b>Numero Expediente:</b>
        @Html.TextBox("Criterio")
        <input type="submit" name="btnBuscar" class="btn-warning" value ="Buscar"/>
    </fieldset>   
 
}
<div class="tabla-bordes-2">
    <div class="table">
        @{
            var row = 0;
            var style = "";
        }
    </div>
    


    <table>
        <tr>
            <th class="tabla-bordes-2" style="background: peru">
                @* @Html.DisplayNameFor(model => model.nroexpediente)*@
                Nro. Expediente
            </th>
            @*<th>
            @Html.DisplayNameFor(model => model.expgenerador)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.nrodocumento)
        </th>*@
            <th class="tabla-bordes-2" style="background: tan">
                @*@Html.DisplayNameFor(model => model.fechaingreso)*@
                Fecha Ingreso
            </th>
            <th class="tabla-bordes-2" style="background: olive">
                @* @Html.DisplayNameFor(model => model.asunto)*@
                Asunto
            </th>
           @* <th>
            Emisor
        </th>*@
            @* <th>
            Procedencia
        </th>*@

            @*<th>
            @Html.DisplayNameFor(model => model.folios)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.observacion)
        </th>*@
            @*<th>
            @Html.DisplayNameFor(model => model.codtipodocumento)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.codemisor)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.id_dep)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.rut)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.id_old)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.nroexpinterno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.telefono)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.fechasalida)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.permanenciamax)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.prioridad)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.recepcion)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.recepcion_old)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.codtipotramite)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.codestado)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.codexpinicial)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.interno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.fecha_audit)
        </th>*@
            <th></th>
        </tr>

        @foreach (var item in Model) {
            style = row % 2 == 0 ? "alt" : "";
            <tr class="@style">
                <td class="tabla-bordes-2" style="background: navajowhite">
                    @Html.DisplayFor(modelItem => item.nroexpediente)
                </td>
                @*<td>
            @Html.DisplayFor(modelItem => item.expgenerador)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nrodocumento)
        </td>*@
                

                @*<td class="tabla-bordes-2" style="background: khaki">
                    @Html.DisplayFor(modelItem => item.fechaingreso)
                </td>
                <td class="tabla-bordes-2" style="background: palegreen">
                    @Html.DisplayFor(modelItem => item.asunto)
                </td>

                <td>
            @Html.DisplayFor(modelItem => item.T_Emisor.nombre)*@
                @*
                

        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codemisor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_dep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.rut)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_old)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nroexpinterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.telefono)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.fechasalida)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.permanenciamax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.prioridad)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.recepcion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.recepcion_old)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codtipotramite)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codestado)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codexpinicial)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.interno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.fecha_audit)
        </td>*@
                @*  <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>*@
            </tr>
            row++;
        }

    </table>
</div>

